package com.cleaningcloud.cld.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 工作计划提交明细对象 cld_workplan_submit
 *
 * @author cleaningcloud
 * @date 2025-01-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldWorkplanSubmit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 工作计划提交id
     */
    private Long workSubmitId;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rowDate;

    // 项目岗位主键
    private Long projectPostId;
    /**
     * 提交人
     */
    @Excel(name = "提交人")
    private Long staffId;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    /**
     * 工作计划id
     */
    @Excel(name = "工作计划id")
    private Long workplanId;

    /**
     * 工作计划明细id
     */
    @Excel(name = "工作计划明细id")
    private Long workplanDetailsId;

    /**
     * 审批人ID
     */
    @Excel(name = "审批人ID")
    private Long approvalId;

    /**
     * 审批时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;

    /**
     * 驳回原因
     */
    @Excel(name = "驳回原因")
    private String approvalReject;

    /**
     * 确认状态(1待审核2客户确认3系统默认4被驳回)
     */
    @Excel(name = "确认状态(0待提交1待审核2客户确认3系统默认4被驳回)")
    private Long approvalStatus;

    /**
     * 驳回图片
     */
    private String approvalImg;
}
